//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    money,
    result
  },
  
})
var money=document.getElementById("m").value
var result=money/6
function dollar() {
  document.getElementById("final").innerHTML=result
  this.setData(
    {result:result}
    )
    
    
    console.log(result);
   

  
}
